<?php

/**
 *
 * @copyright	Copyright 2009-2012   庆丰裕软件工作室
 * @author	Zheng HanWei <315933614@qq.com
 * @link	http://www.qfyu.net/
 *  
 * */
include_once("config/usergroup.php");
include_once("includes/page_utf_class.php");

//获取培训视频
$page = new Page;
$page->url = $config['weburl'] . '/';
$page->listRows = 20;
$sql="select * from ".TRAINTXT." where 1 order by addtime desc ";
if (!$page->__get('totalRows'))
	{
		$db->query($sql);
		$page->totalRows =$db->num_rows();
	}
	$sql.=" limit ".$page->firstRow.", 20";
//--------------------------------------------------
$db->query($sql);
$videoList['list']=$db->getRows();
$videoList['page']=$page->prompt();


$tpl->assign("video", $videoList);

$tpl->assign("current","train");
include_once("footer.php");
//=====================================================
$out=tplfetch("train_text_list.htm",$flag);
?>
